<template>
  <div>
    <div class="mokuai1">
      <h3>eventBus数据传递并且是同级数据传递,他不需要同一个父级。只要一个组件写，另一个组件接收就行这个。因为eventBus是个全局的。所以他能让组件之间互相来回传递</h3>
      <eventA />
      <eventB />
    </div>
  </div>
</template>

<script>
import eventA from "../components/eventpageA";
import eventB from "../components/eventpageB";
export default {
  components: {
    eventA,
    eventB,
  },
};
</script>

<style>
</style>